package com.zzyl.job;

import com.zzyl.mapper.CustomerReservationMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class MyTask {
    @Autowired
    private CustomerReservationMapper customerReservationMapper;
    @Scheduled(cron = "0 0/30 * * * ?")
    public void executeTask(){
        customerReservationMapper.setStatus();
    }
}
